src := $(shell ls *.c)
#objs := $(patsubst %.c,%.o,$(src))

CROSS_COMPILE := arm-linux-gcc

main: $(src)
	$(CROSS_COMPILE) -o $@ $^

#%.o:%.c
#	$(CROSS_COMPILE) $(CFLAGS) -o $@ $<

clean:
	rm -f main *.o
